package cc.ycws.core.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 常量表
  * </p>
  *
  * @author tutu
  * @since 2018-05-22
  */
@TableName("mdm_dict")
public class MdmDict implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典的编码,由系统维护自动生成
     */
    @TableField("dict_code")
    private String dictCode;

    /**
     * 字典的名称
     */
    @TableField("dict_name")
    private String dictName;

    /**
     * 字典级别(0=系统级 1=客户级)
     */
    @TableField("dict_level")
    private String dictLevel;

    /**
     * 建档人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String creator;

    /**
     * 建档时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getDictCode() {
    return dictCode;
    }

    public void setDictCode(String dictCode) {
    this.dictCode = dictCode;
    }
    public String getDictName() {
    return dictName;
    }

    public void setDictName(String dictName) {
    this.dictName = dictName;
    }
    public String getDictLevel() {
    return dictLevel;
    }

    public void setDictLevel(String dictLevel) {
    this.dictLevel = dictLevel;
    }
    public String getCreator() {
    return creator;
    }

    public void setCreator(String creator) {
    this.creator = creator;
    }
    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }
    public String getModifier() {
    return modifier;
    }

    public void setModifier(String modifier) {
    this.modifier = modifier;
    }
    public Date getModifyTime() {
    return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
    }
    public String getRemarks() {
    return remarks;
    }

    public void setRemarks(String remarks) {
    this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "MdmDict{" +
                "id=" + id +
                ", dictCode=" + dictCode +
                ", dictName=" + dictName +
                ", dictLevel=" + dictLevel +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                ", remarks=" + remarks +
        "}";
    }
}
